home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / dev / c / CLib-SDI.lha / CLib-SDI / include2mos / inline / intuition_protos.h < prev    next >
C/C++ Source or Header  |  2002-10-27  |  45KB  |  1,411 lines

  1. #ifndef _VBCCINLINE_INTUITION_H
  2. #define _VBCCINLINE_INTUITION_H
  3.  
  4. #ifndef EXEC_TYPES_H
  5. #include <exec/types.h>
  6. #endif
  7.  
  8. VOID __OpenIntuition(struct IntuitionBase *) =
  9.     "\tlwz\t11,100(2)\n"
  10.     "\tstw\t3,56(2)\n"
  11.     "\tmtlr\t11\n"
  12.     "\tli\t3,-30\n"
  13.     "\tblrl";
  14. #define OpenIntuition() __OpenIntuition(IntuitionBase)
  15.  
  16. VOID __Intuition(struct IntuitionBase *, struct InputEvent * iEvent) =
  17.     "\tlwz\t11,100(2)\n"
  18.     "\tstw\t3,56(2)\n"
  19.     "\tmtlr\t11\n"
  20.     "\tstw\t4,32(2)\n"
  21.     "\tli\t3,-36\n"
  22.     "\tblrl";
  23. #define Intuition(iEvent) __Intuition(IntuitionBase, (iEvent))
  24.  
  25. UWORD __AddGadget(struct IntuitionBase *, struct Window * window, struct Gadget * gadget, ULONG position) =
  26.     "\tlwz\t11,100(2)\n"
  27.     "\tstw\t3,56(2)\n"
  28.     "\tmtlr\t11\n"
  29.     "\tstw\t4,32(2)\n"
  30.     "\tstw\t5,36(2)\n"
  31.     "\tstw\t6,0(2)\n"
  32.     "\tli\t3,-42\n"
  33.     "\tblrl";
  34. #define AddGadget(window, gadget, position) __AddGadget(IntuitionBase, (window), (gadget), (position))
  35.  
  36. BOOL __ClearDMRequest(struct IntuitionBase *, struct Window * window) =
  37.     "\tlwz\t11,100(2)\n"
  38.     "\tstw\t3,56(2)\n"
  39.     "\tmtlr\t11\n"
  40.     "\tstw\t4,32(2)\n"
  41.     "\tli\t3,-48\n"
  42.     "\tblrl";
  43. #define ClearDMRequest(window) __ClearDMRequest(IntuitionBase, (window))
  44.  
  45. VOID __ClearMenuStrip(struct IntuitionBase *, struct Window * window) =
  46.     "\tlwz\t11,100(2)\n"
  47.     "\tstw\t3,56(2)\n"
  48.     "\tmtlr\t11\n"
  49.     "\tstw\t4,32(2)\n"
  50.     "\tli\t3,-54\n"
  51.     "\tblrl";
  52. #define ClearMenuStrip(window) __ClearMenuStrip(IntuitionBase, (window))
  53.  
  54. VOID __ClearPointer(struct IntuitionBase *, struct Window * window) =
  55.     "\tlwz\t11,100(2)\n"
  56.     "\tstw\t3,56(2)\n"
  57.     "\tmtlr\t11\n"
  58.     "\tstw\t4,32(2)\n"
  59.     "\tli\t3,-60\n"
  60.     "\tblrl";
  61. #define ClearPointer(window) __ClearPointer(IntuitionBase, (window))
  62.  
  63. BOOL __CloseScreen(struct IntuitionBase *, struct Screen * screen) =
  64.     "\tlwz\t11,100(2)\n"
  65.     "\tstw\t3,56(2)\n"
  66.     "\tmtlr\t11\n"
  67.     "\tstw\t4,32(2)\n"
  68.     "\tli\t3,-66\n"
  69.     "\tblrl";
  70. #define CloseScreen(screen) __CloseScreen(IntuitionBase, (screen))
  71.  
  72. VOID __CloseWindow(struct IntuitionBase *, struct Window * window) =
  73.     "\tlwz\t11,100(2)\n"
  74.     "\tstw\t3,56(2)\n"
  75.     "\tmtlr\t11\n"
  76.     "\tstw\t4,32(2)\n"
  77.     "\tli\t3,-72\n"
  78.     "\tblrl";
  79. #define CloseWindow(window) __CloseWindow(IntuitionBase, (window))
  80.  
  81. LONG __CloseWorkBench(struct IntuitionBase *) =
  82.     "\tlwz\t11,100(2)\n"
  83.     "\tstw\t3,56(2)\n"
  84.     "\tmtlr\t11\n"
  85.     "\tli\t3,-78\n"
  86.     "\tblrl";
  87. #define CloseWorkBench() __CloseWorkBench(IntuitionBase)
  88.  
  89. VOID __CurrentTime(struct IntuitionBase *, ULONG * seconds, ULONG * micros) =
  90.     "\tlwz\t11,100(2)\n"
  91.     "\tstw\t3,56(2)\n"
  92.     "\tmtlr\t11\n"
  93.     "\tstw\t4,32(2)\n"
  94.     "\tstw\t5,36(2)\n"
  95.     "\tli\t3,-84\n"
  96.     "\tblrl";
  97. #define CurrentTime(seconds, micros) __CurrentTime(IntuitionBase, (seconds), (micros))
  98.  
  99. BOOL __DisplayAlert(struct IntuitionBase *, ULONG alertNumber, CONST_STRPTR string, ULONG height) =
  100.     "\tlwz\t11,100(2)\n"
  101.     "\tstw\t3,56(2)\n"
  102.     "\tmtlr\t11\n"
  103.     "\tstw\t4,0(2)\n"
  104.     "\tstw\t5,32(2)\n"
  105.     "\tstw\t6,4(2)\n"
  106.     "\tli\t3,-90\n"
  107.     "\tblrl";
  108. #define DisplayAlert(alertNumber, string, height) __DisplayAlert(IntuitionBase, (alertNumber), (string), (height))
  109.  
  110. VOID __DisplayBeep(struct IntuitionBase *, struct Screen * screen) =
  111.     "\tlwz\t11,100(2)\n"
  112.     "\tstw\t3,56(2)\n"
  113.     "\tmtlr\t11\n"
  114.     "\tstw\t4,32(2)\n"
  115.     "\tli\t3,-96\n"
  116.     "\tblrl";
  117. #define DisplayBeep(screen) __DisplayBeep(IntuitionBase, (screen))
  118.  
  119. BOOL __DoubleClick(struct IntuitionBase *, ULONG sSeconds, ULONG sMicros, ULONG cSeconds, ULONG cMicros) =
  120.     "\tlwz\t11,100(2)\n"
  121.     "\tstw\t3,56(2)\n"
  122.     "\tmtlr\t11\n"
  123.     "\tstw\t4,0(2)\n"
  124.     "\tstw\t5,4(2)\n"
  125.     "\tstw\t6,8(2)\n"
  126.     "\tstw\t7,12(2)\n"
  127.     "\tli\t3,-102\n"
  128.     "\tblrl";
  129. #define DoubleClick(sSeconds, sMicros, cSeconds, cMicros) __DoubleClick(IntuitionBase, (sSeconds), (sMicros), (cSeconds), (cMicros))
  130.  
  131. VOID __DrawBorder(struct IntuitionBase *, struct RastPort * rp, const struct Border * border, LONG leftOffset, LONG topOffset) =
  132.     "\tlwz\t11,100(2)\n"
  133.     "\tstw\t3,56(2)\n"
  134.     "\tmtlr\t11\n"
  135.     "\tstw\t4,32(2)\n"
  136.     "\tstw\t5,36(2)\n"
  137.     "\tstw\t6,0(2)\n"
  138.     "\tstw\t7,4(2)\n"
  139.     "\tli\t3,-108\n"
  140.     "\tblrl";
  141. #define DrawBorder(rp, border, leftOffset, topOffset) __DrawBorder(IntuitionBase, (rp), (border), (leftOffset), (topOffset))
  142.  
  143. VOID __DrawImage(struct IntuitionBase *, struct RastPort * rp, struct Image * image, LONG leftOffset, LONG topOffset) =
  144.     "\tlwz\t11,100(2)\n"
  145.     "\tstw\t3,56(2)\n"
  146.     "\tmtlr\t11\n"
  147.     "\tstw\t4,32(2)\n"
  148.     "\tstw\t5,36(2)\n"
  149.     "\tstw\t6,0(2)\n"
  150.     "\tstw\t7,4(2)\n"
  151.     "\tli\t3,-114\n"
  152.     "\tblrl";
  153. #define DrawImage(rp, image, leftOffset, topOffset) __DrawImage(IntuitionBase, (rp), (image), (leftOffset), (topOffset))
  154.  
  155. VOID __EndRequest(struct IntuitionBase *, struct Requester * requester, struct Window * window) =
  156.     "\tlwz\t11,100(2)\n"
  157.     "\tstw\t3,56(2)\n"
  158.     "\tmtlr\t11\n"
  159.     "\tstw\t4,32(2)\n"
  160.     "\tstw\t5,36(2)\n"
  161.     "\tli\t3,-120\n"
  162.     "\tblrl";
  163. #define EndRequest(requester, window) __EndRequest(IntuitionBase, (requester), (window))
  164.  
  165. struct Preferences * __GetDefPrefs(struct IntuitionBase *, struct Preferences * preferences, LONG size) =
  166.     "\tlwz\t11,100(2)\n"
  167.     "\tstw\t3,56(2)\n"
  168.     "\tmtlr\t11\n"
  169.     "\tstw\t4,32(2)\n"
  170.     "\tstw\t5,0(2)\n"
  171.     "\tli\t3,-126\n"
  172.     "\tblrl";
  173. #define GetDefPrefs(preferences, size) __GetDefPrefs(IntuitionBase, (preferences), (size))
  174.  
  175. struct Preferences * __GetPrefs(struct IntuitionBase *, struct Preferences * preferences, LONG size) =
  176.     "\tlwz\t11,100(2)\n"
  177.     "\tstw\t3,56(2)\n"
  178.     "\tmtlr\t11\n"
  179.     "\tstw\t4,32(2)\n"
  180.     "\tstw\t5,0(2)\n"
  181.     "\tli\t3,-132\n"
  182.     "\tblrl";
  183. #define GetPrefs(preferences, size) __GetPrefs(IntuitionBase, (preferences), (size))
  184.  
  185. VOID __InitRequester(struct IntuitionBase *, struct Requester * requester) =
  186.     "\tlwz\t11,100(2)\n"
  187.     "\tstw\t3,56(2)\n"
  188.     "\tmtlr\t11\n"
  189.     "\tstw\t4,32(2)\n"
  190.     "\tli\t3,-138\n"
  191.     "\tblrl";
  192. #define InitRequester(requester) __InitRequester(IntuitionBase, (requester))
  193.  
  194. struct MenuItem * __ItemAddress(struct IntuitionBase *, const struct Menu * menuStrip, ULONG menuNumber) =
  195.     "\tlwz\t11,100(2)\n"
  196.     "\tstw\t3,56(2)\n"
  197.     "\tmtlr\t11\n"
  198.     "\tstw\t4,32(2)\n"
  199.     "\tstw\t5,0(2)\n"
  200.     "\tli\t3,-144\n"
  201.     "\tblrl";
  202. #define ItemAddress(menuStrip, menuNumber) __ItemAddress(IntuitionBase, (menuStrip), (menuNumber))
  203.  
  204. BOOL __ModifyIDCMP(struct IntuitionBase *, struct Window * window, ULONG flags) =
  205.     "\tlwz\t11,100(2)\n"
  206.     "\tstw\t3,56(2)\n"
  207.     "\tmtlr\t11\n"
  208.     "\tstw\t4,32(2)\n"
  209.     "\tstw\t5,0(2)\n"
  210.     "\tli\t3,-150\n"
  211.     "\tblrl";
  212. #define ModifyIDCMP(window, flags) __ModifyIDCMP(IntuitionBase, (window), (flags))
  213.  
  214. VOID __ModifyProp(struct IntuitionBase *, struct Gadget * gadget, struct Window * window, struct Requester * requester, ULONG flags, ULONG horizPot, ULONG vertPot, ULONG horizBody, ULONG vertBody) =
  215.     "\tlwz\t11,100(2)\n"
  216.     "\tstw\t3,56(2)\n"
  217.     "\tmtlr\t11\n"
  218.     "\tstw\t4,32(2)\n"
  219.     "\tstw\t5,36(2)\n"
  220.     "\tstw\t6,40(2)\n"
  221.     "\tstw\t7,0(2)\n"
  222.     "\tstw\t8,4(2)\n"
  223.     "\tstw\t9,8(2)\n"
  224.     "\tstw\t10,12(2)\n"
  225.     "\tlwz\t11,8(1)\n"
  226.     "\tstw\t11,16(2)\n"
  227.     "\tli\t3,-156\n"
  228.     "\tblrl";
  229. #define ModifyProp(gadget, window, requester, flags, horizPot, vertPot, horizBody, vertBody) __ModifyProp(IntuitionBase, (gadget), (window), (requester), (flags), (horizPot), (vertPot), (horizBody), (vertBody))
  230.  
  231. VOID __MoveScreen(struct IntuitionBase *, struct Screen * screen, LONG dx, LONG dy) =
  232.     "\tlwz\t11,100(2)\n"
  233.     "\tstw\t3,56(2)\n"
  234.     "\tmtlr\t11\n"
  235.     "\tstw\t4,32(2)\n"
  236.     "\tstw\t5,0(2)\n"
  237.     "\tstw\t6,4(2)\n"
  238.     "\tli\t3,-162\n"
  239.     "\tblrl";
  240. #define MoveScreen(screen, dx, dy) __MoveScreen(IntuitionBase, (screen), (dx), (dy))
  241.  
  242. VOID __MoveWindow(struct IntuitionBase *, struct Window * window, LONG dx, LONG dy) =
  243.     "\tlwz\t11,100(2)\n"
  244.     "\tstw\t3,56(2)\n"
  245.     "\tmtlr\t11\n"
  246.     "\tstw\t4,32(2)\n"
  247.     "\tstw\t5,0(2)\n"
  248.     "\tstw\t6,4(2)\n"
  249.     "\tli\t3,-168\n"
  250.     "\tblrl";
  251. #define MoveWindow(window, dx, dy) __MoveWindow(IntuitionBase, (window), (dx), (dy))
  252.  
  253. VOID __OffGadget(struct IntuitionBase *, struct Gadget * gadget, struct Window * window, struct Requester * requester) =
  254.     "\tlwz\t11,100(2)\n"
  255.     "\tstw\t3,56(2)\n"
  256.     "\tmtlr\t11\n"
  257.     "\tstw\t4,32(2)\n"
  258.     "\tstw\t5,36(2)\n"
  259.     "\tstw\t6,40(2)\n"
  260.     "\tli\t3,-174\n"
  261.     "\tblrl";
  262. #define OffGadget(gadget, window, requester) __OffGadget(IntuitionBase, (gadget), (window), (requester))
  263.  
  264. VOID __OffMenu(struct IntuitionBase *, struct Window * window, ULONG menuNumber) =
  265.     "\tlwz\t11,100(2)\n"
  266.     "\tstw\t3,56(2)\n"
  267.     "\tmtlr\t11\n"
  268.     "\tstw\t4,32(2)\n"
  269.     "\tstw\t5,0(2)\n"
  270.     "\tli\t3,-180\n"
  271.     "\tblrl";
  272. #define OffMenu(window, menuNumber) __OffMenu(IntuitionBase, (window), (menuNumber))
  273.  
  274. VOID __OnGadget(struct IntuitionBase *, struct Gadget * gadget, struct Window * window, struct Requester * requester) =
  275.     "\tlwz\t11,100(2)\n"
  276.     "\tstw\t3,56(2)\n"
  277.     "\tmtlr\t11\n"
  278.     "\tstw\t4,32(2)\n"
  279.     "\tstw\t5,36(2)\n"
  280.     "\tstw\t6,40(2)\n"
  281.     "\tli\t3,-186\n"
  282.     "\tblrl";
  283. #define OnGadget(gadget, window, requester) __OnGadget(IntuitionBase, (gadget), (window), (requester))
  284.  
  285. VOID __OnMenu(struct IntuitionBase *, struct Window * window, ULONG menuNumber) =
  286.     "\tlwz\t11,100(2)\n"
  287.     "\tstw\t3,56(2)\n"
  288.     "\tmtlr\t11\n"
  289.     "\tstw\t4,32(2)\n"
  290.     "\tstw\t5,0(2)\n"
  291.     "\tli\t3,-192\n"
  292.     "\tblrl";
  293. #define OnMenu(window, menuNumber) __OnMenu(IntuitionBase, (window), (menuNumber))
  294.  
  295. struct Screen * __OpenScreen(struct IntuitionBase *, const struct NewScreen * newScreen) =
  296.     "\tlwz\t11,100(2)\n"
  297.     "\tstw\t3,56(2)\n"
  298.     "\tmtlr\t11\n"
  299.     "\tstw\t4,32(2)\n"
  300.     "\tli\t3,-198\n"
  301.     "\tblrl";
  302. #define OpenScreen(newScreen) __OpenScreen(IntuitionBase, (newScreen))
  303.  
  304. struct Window * __OpenWindow(struct IntuitionBase *, const struct NewWindow * newWindow) =
  305.     "\tlwz\t11,100(2)\n"
  306.     "\tstw\t3,56(2)\n"
  307.     "\tmtlr\t11\n"
  308.     "\tstw\t4,32(2)\n"
  309.     "\tli\t3,-204\n"
  310.     "\tblrl";
  311. #define OpenWindow(newWindow) __OpenWindow(IntuitionBase, (newWindow))
  312.  
  313. ULONG __OpenWorkBench(struct IntuitionBase *) =
  314.     "\tlwz\t11,100(2)\n"
  315.     "\tstw\t3,56(2)\n"
  316.     "\tmtlr\t11\n"
  317.     "\tli\t3,-210\n"
  318.     "\tblrl";
  319. #define OpenWorkBench() __OpenWorkBench(IntuitionBase)
  320.  
  321. VOID __PrintIText(struct IntuitionBase *, struct RastPort * rp, const struct IntuiText * iText, LONG left, LONG top) =
  322.     "\tlwz\t11,100(2)\n"
  323.     "\tstw\t3,56(2)\n"
  324.     "\tmtlr\t11\n"
  325.     "\tstw\t4,32(2)\n"
  326.     "\tstw\t5,36(2)\n"
  327.     "\tstw\t6,0(2)\n"
  328.     "\tstw\t7,4(2)\n"
  329.     "\tli\t3,-216\n"
  330.     "\tblrl";
  331. #define PrintIText(rp, iText, left, top) __PrintIText(IntuitionBase, (rp), (iText), (left), (top))
  332.  
  333. VOID __RefreshGadgets(struct IntuitionBase *, struct Gadget * gadgets, struct Window * window, struct Requester * requester) =
  334.     "\tlwz\t11,100(2)\n"
  335.     "\tstw\t3,56(2)\n"
  336.     "\tmtlr\t11\n"
  337.     "\tstw\t4,32(2)\n"
  338.     "\tstw\t5,36(2)\n"
  339.     "\tstw\t6,40(2)\n"
  340.     "\tli\t3,-222\n"
  341.     "\tblrl";
  342. #define RefreshGadgets(gadgets, window, requester) __RefreshGadgets(IntuitionBase, (gadgets), (window), (requester))
  343.  
  344. UWORD __RemoveGadget(struct IntuitionBase *, struct Window * window, struct Gadget * gadget) =
  345.     "\tlwz\t11,100(2)\n"
  346.     "\tstw\t3,56(2)\n"
  347.     "\tmtlr\t11\n"
  348.     "\tstw\t4,32(2)\n"
  349.     "\tstw\t5,36(2)\n"
  350.     "\tli\t3,-228\n"
  351.     "\tblrl";
  352. #define RemoveGadget(window, gadget) __RemoveGadget(IntuitionBase, (window), (gadget))
  353.  
  354. VOID __ReportMouse(struct IntuitionBase *, LONG flag, struct Window * window) =
  355.     "\tlwz\t11,100(2)\n"
  356.     "\tstw\t3,56(2)\n"
  357.     "\tmtlr\t11\n"
  358.     "\tstw\t4,0(2)\n"
  359.     "\tstw\t5,32(2)\n"
  360.     "\tli\t3,-234\n"
  361.     "\tblrl";
  362. #define ReportMouse(flag, window) __ReportMouse(IntuitionBase, (flag), (window))
  363.  
  364. #define ReportMouse1(flag, window) __ReportMouse((flag), (window), IntuitionBase)
  365.  
  366. BOOL __Request(struct IntuitionBase *, struct Requester * requester, struct Window * window) =
  367.     "\tlwz\t11,100(2)\n"
  368.     "\tstw\t3,56(2)\n"
  369.     "\tmtlr\t11\n"
  370.     "\tstw\t4,32(2)\n"
  371.     "\tstw\t5,36(2)\n"
  372.     "\tli\t3,-240\n"
  373.     "\tblrl";
  374. #define Request(requester, window) __Request(IntuitionBase, (requester), (window))
  375.  
  376. VOID __ScreenToBack(struct IntuitionBase *, struct Screen * screen) =
  377.     "\tlwz\t11,100(2)\n"
  378.     "\tstw\t3,56(2)\n"
  379.     "\tmtlr\t11\n"
  380.     "\tstw\t4,32(2)\n"
  381.     "\tli\t3,-246\n"
  382.     "\tblrl";
  383. #define ScreenToBack(screen) __ScreenToBack(IntuitionBase, (screen))
  384.  
  385. VOID __ScreenToFront(struct IntuitionBase *, struct Screen * screen) =
  386.     "\tlwz\t11,100(2)\n"
  387.     "\tstw\t3,56(2)\n"
  388.     "\tmtlr\t11\n"
  389.     "\tstw\t4,32(2)\n"
  390.     "\tli\t3,-252\n"
  391.     "\tblrl";
  392. #define ScreenToFront(screen) __ScreenToFront(IntuitionBase, (screen))
  393.  
  394. BOOL __SetDMRequest(struct IntuitionBase *, struct Window * window, struct Requester * requester) =
  395.     "\tlwz\t11,100(2)\n"
  396.     "\tstw\t3,56(2)\n"
  397.     "\tmtlr\t11\n"
  398.     "\tstw\t4,32(2)\n"
  399.     "\tstw\t5,36(2)\n"
  400.     "\tli\t3,-258\n"
  401.     "\tblrl";
  402. #define SetDMRequest(window, requester) __SetDMRequest(IntuitionBase, (window), (requester))
  403.  
  404. BOOL __SetMenuStrip(struct IntuitionBase *, struct Window * window, struct Menu * menu) =
  405.     "\tlwz\t11,100(2)\n"
  406.     "\tstw\t3,56(2)\n"
  407.     "\tmtlr\t11\n"
  408.     "\tstw\t4,32(2)\n"
  409.     "\tstw\t5,36(2)\n"
  410.     "\tli\t3,-264\n"
  411.     "\tblrl";
  412. #define SetMenuStrip(window, menu) __SetMenuStrip(IntuitionBase, (window), (menu))
  413.  
  414. VOID __SetPointer(struct IntuitionBase *, struct Window * window, UWORD * pointer, LONG height, LONG width, LONG xOffset, LONG yOffset) =
  415.     "\tlwz\t11,100(2)\n"
  416.     "\tstw\t3,56(2)\n"
  417.     "\tmtlr\t11\n"
  418.     "\tstw\t4,32(2)\n"
  419.     "\tstw\t5,36(2)\n"
  420.     "\tstw\t6,0(2)\n"
  421.     "\tstw\t7,4(2)\n"
  422.     "\tstw\t8,8(2)\n"
  423.     "\tstw\t9,12(2)\n"
  424.     "\tli\t3,-270\n"
  425.     "\tblrl";
  426. #define SetPointer(window, pointer, height, width, xOffset, yOffset) __SetPointer(IntuitionBase, (window), (pointer), (height), (width), (xOffset), (yOffset))
  427.  
  428. VOID __SetWindowTitles(struct IntuitionBase *, struct Window * window, CONST_STRPTR windowTitle, CONST_STRPTR screenTitle) =
  429.     "\tlwz\t11,100(2)\n"
  430.     "\tstw\t3,56(2)\n"
  431.     "\tmtlr\t11\n"
  432.     "\tstw\t4,32(2)\n"
  433.     "\tstw\t5,36(2)\n"
  434.     "\tstw\t6,40(2)\n"
  435.     "\tli\t3,-276\n"
  436.     "\tblrl";
  437. #define SetWindowTitles(window, windowTitle, screenTitle) __SetWindowTitles(IntuitionBase, (window), (windowTitle), (screenTitle))
  438.  
  439. VOID __ShowTitle(struct IntuitionBase *, struct Screen * screen, LONG showIt) =
  440.     "\tlwz\t11,100(2)\n"
  441.     "\tstw\t3,56(2)\n"
  442.     "\tmtlr\t11\n"
  443.     "\tstw\t4,32(2)\n"
  444.     "\tstw\t5,0(2)\n"
  445.     "\tli\t3,-282\n"
  446.     "\tblrl";
  447. #define ShowTitle(screen, showIt) __ShowTitle(IntuitionBase, (screen), (showIt))
  448.  
  449. VOID __SizeWindow(struct IntuitionBase *, struct Window * window, LONG dx, LONG dy) =
  450.     "\tlwz\t11,100(2)\n"
  451.     "\tstw\t3,56(2)\n"
  452.     "\tmtlr\t11\n"
  453.     "\tstw\t4,32(2)\n"
  454.     "\tstw\t5,0(2)\n"
  455.     "\tstw\t6,4(2)\n"
  456.     "\tli\t3,-288\n"
  457.     "\tblrl";
  458. #define SizeWindow(window, dx, dy) __SizeWindow(IntuitionBase, (window), (dx), (dy))
  459.  
  460. struct View * __ViewAddress(struct IntuitionBase *) =
  461.     "\tlwz\t11,100(2)\n"
  462.     "\tstw\t3,56(2)\n"
  463.     "\tmtlr\t11\n"
  464.     "\tli\t3,-294\n"
  465.     "\tblrl";
  466. #define ViewAddress() __ViewAddress(IntuitionBase)
  467.  
  468. struct ViewPort * __ViewPortAddress(struct IntuitionBase *, const struct Window * window) =
  469.     "\tlwz\t11,100(2)\n"
  470.     "\tstw\t3,56(2)\n"
  471.     "\tmtlr\t11\n"
  472.     "\tstw\t4,32(2)\n"
  473.     "\tli\t3,-300\n"
  474.     "\tblrl";
  475. #define ViewPortAddress(window) __ViewPortAddress(IntuitionBase, (window))
  476.  
  477. VOID __WindowToBack(struct IntuitionBase *, struct Window * window) =
  478.     "\tlwz\t11,100(2)\n"
  479.     "\tstw\t3,56(2)\n"
  480.     "\tmtlr\t11\n"
  481.     "\tstw\t4,32(2)\n"
  482.     "\tli\t3,-306\n"
  483.     "\tblrl";
  484. #define WindowToBack(window) __WindowToBack(IntuitionBase, (window))
  485.  
  486. VOID __WindowToFront(struct IntuitionBase *, struct Window * window) =
  487.     "\tlwz\t11,100(2)\n"
  488.     "\tstw\t3,56(2)\n"
  489.     "\tmtlr\t11\n"
  490.     "\tstw\t4,32(2)\n"
  491.     "\tli\t3,-312\n"
  492.     "\tblrl";
  493. #define WindowToFront(window) __WindowToFront(IntuitionBase, (window))
  494.  
  495. BOOL __WindowLimits(struct IntuitionBase *, struct Window * window, LONG widthMin, LONG heightMin, ULONG widthMax, ULONG heightMax) =
  496.     "\tlwz\t11,100(2)\n"
  497.     "\tstw\t3,56(2)\n"
  498.     "\tmtlr\t11\n"
  499.     "\tstw\t4,32(2)\n"
  500.     "\tstw\t5,0(2)\n"
  501.     "\tstw\t6,4(2)\n"
  502.     "\tstw\t7,8(2)\n"
  503.     "\tstw\t8,12(2)\n"
  504.     "\tli\t3,-318\n"
  505.     "\tblrl";
  506. #define WindowLimits(window, widthMin, heightMin, widthMax, heightMax) __WindowLimits(IntuitionBase, (window), (widthMin), (heightMin), (widthMax), (heightMax))
  507.  
  508. struct Preferences  * __SetPrefs(struct IntuitionBase *, const struct Preferences * preferences, LONG size, LONG inform) =
  509.     "\tlwz\t11,100(2)\n"
  510.     "\tstw\t3,56(2)\n"
  511.     "\tmtlr\t11\n"
  512.     "\tstw\t4,32(2)\n"
  513.     "\tstw\t5,0(2)\n"
  514.     "\tstw\t6,4(2)\n"
  515.     "\tli\t3,-324\n"
  516.     "\tblrl";
  517. #define SetPrefs(preferences, size, inform) __SetPrefs(IntuitionBase, (preferences), (size), (inform))
  518.  
  519. LONG __IntuiTextLength(struct IntuitionBase *, const struct IntuiText * iText) =
  520.     "\tlwz\t11,100(2)\n"
  521.     "\tstw\t3,56(2)\n"
  522.     "\tmtlr\t11\n"
  523.     "\tstw\t4,32(2)\n"
  524.     "\tli\t3,-330\n"
  525.     "\tblrl";
  526. #define IntuiTextLength(iText) __IntuiTextLength(IntuitionBase, (iText))
  527.  
  528. BOOL __WBenchToBack(struct IntuitionBase *) =
  529.     "\tlwz\t11,100(2)\n"
  530.     "\tstw\t3,56(2)\n"
  531.     "\tmtlr\t11\n"
  532.     "\tli\t3,-336\n"
  533.     "\tblrl";
  534. #define WBenchToBack() __WBenchToBack(IntuitionBase)
  535.  
  536. BOOL __WBenchToFront(struct IntuitionBase *) =
  537.     "\tlwz\t11,100(2)\n"
  538.     "\tstw\t3,56(2)\n"
  539.     "\tmtlr\t11\n"
  540.     "\tli\t3,-342\n"
  541.     "\tblrl";
  542. #define WBenchToFront() __WBenchToFront(IntuitionBase)
  543.  
  544. BOOL __AutoRequest(struct IntuitionBase *, struct Window * window, const struct IntuiText * body, const struct IntuiText * posText, const struct IntuiText * negText, ULONG pFlag, ULONG nFlag, ULONG width, ULONG height) =
  545.     "\tlwz\t11,100(2)\n"
  546.     "\tstw\t3,56(2)\n"
  547.     "\tmtlr\t11\n"
  548.     "\tstw\t4,32(2)\n"
  549.     "\tstw\t5,36(2)\n"
  550.     "\tstw\t6,40(2)\n"
  551.     "\tstw\t7,44(2)\n"
  552.     "\tstw\t8,0(2)\n"
  553.     "\tstw\t9,4(2)\n"
  554.     "\tstw\t10,8(2)\n"
  555.     "\tlwz\t11,8(1)\n"
  556.     "\tstw\t11,12(2)\n"
  557.     "\tli\t3,-348\n"
  558.     "\tblrl";
  559. #define AutoRequest(window, body, posText, negText, pFlag, nFlag, width, height) __AutoRequest(IntuitionBase, (window), (body), (posText), (negText), (pFlag), (nFlag), (width), (height))
  560.  
  561. VOID __BeginRefresh(struct IntuitionBase *, struct Window * window) =
  562.     "\tlwz\t11,100(2)\n"
  563.     "\tstw\t3,56(2)\n"
  564.     "\tmtlr\t11\n"
  565.     "\tstw\t4,32(2)\n"
  566.     "\tli\t3,-354\n"
  567.     "\tblrl";
  568. #define BeginRefresh(window) __BeginRefresh(IntuitionBase, (window))
  569.  
  570. struct Window * __BuildSysRequest(struct IntuitionBase *, struct Window * window, const struct IntuiText * body, const struct IntuiText * posText, const struct IntuiText * negText, ULONG flags, ULONG width, ULONG height) =
  571.     "\tlwz\t11,100(2)\n"
  572.     "\tstw\t3,56(2)\n"
  573.     "\tmtlr\t11\n"
  574.     "\tstw\t4,32(2)\n"
  575.     "\tstw\t5,36(2)\n"
  576.     "\tstw\t6,40(2)\n"
  577.     "\tstw\t7,44(2)\n"
  578.     "\tstw\t8,0(2)\n"
  579.     "\tstw\t9,4(2)\n"
  580.     "\tstw\t10,8(2)\n"
  581.     "\tli\t3,-360\n"
  582.     "\tblrl";
  583. #define BuildSysRequest(window, body, posText, negText, flags, width, height) __BuildSysRequest(IntuitionBase, (window), (body), (posText), (negText), (flags), (width), (height))
  584.  
  585. VOID __EndRefresh(struct IntuitionBase *, struct Window * window, LONG complete) =
  586.     "\tlwz\t11,100(2)\n"
  587.     "\tstw\t3,56(2)\n"
  588.     "\tmtlr\t11\n"
  589.     "\tstw\t4,32(2)\n"
  590.     "\tstw\t5,0(2)\n"
  591.     "\tli\t3,-366\n"
  592.     "\tblrl";
  593. #define EndRefresh(window, complete) __EndRefresh(IntuitionBase, (window), (complete))
  594.  
  595. VOID __FreeSysRequest(struct IntuitionBase *, struct Window * window) =
  596.     "\tlwz\t11,100(2)\n"
  597.     "\tstw\t3,56(2)\n"
  598.     "\tmtlr\t11\n"
  599.     "\tstw\t4,32(2)\n"
  600.     "\tli\t3,-372\n"
  601.     "\tblrl";
  602. #define FreeSysRequest(window) __FreeSysRequest(IntuitionBase, (window))
  603.  
  604. LONG __MakeScreen(struct IntuitionBase *, struct Screen * screen) =
  605.     "\tlwz\t11,100(2)\n"
  606.     "\tstw\t3,56(2)\n"
  607.     "\tmtlr\t11\n"
  608.     "\tstw\t4,32(2)\n"
  609.     "\tli\t3,-378\n"
  610.     "\tblrl";
  611. #define MakeScreen(screen) __MakeScreen(IntuitionBase, (screen))
  612.  
  613. LONG __RemakeDisplay(struct IntuitionBase *) =
  614.     "\tlwz\t11,100(2)\n"
  615.     "\tstw\t3,56(2)\n"
  616.     "\tmtlr\t11\n"
  617.     "\tli\t3,-384\n"
  618.     "\tblrl";
  619. #define RemakeDisplay() __RemakeDisplay(IntuitionBase)
  620.  
  621. LONG __RethinkDisplay(struct IntuitionBase *) =
  622.     "\tlwz\t11,100(2)\n"
  623.     "\tstw\t3,56(2)\n"
  624.     "\tmtlr\t11\n"
  625.     "\tli\t3,-390\n"
  626.     "\tblrl";
  627. #define RethinkDisplay() __RethinkDisplay(IntuitionBase)
  628.  
  629. APTR __AllocRemember(struct IntuitionBase *, struct Remember ** rememberKey, ULONG size, ULONG flags) =
  630.     "\tlwz\t11,100(2)\n"
  631.     "\tstw\t3,56(2)\n"
  632.     "\tmtlr\t11\n"
  633.     "\tstw\t4,32(2)\n"
  634.     "\tstw\t5,0(2)\n"
  635.     "\tstw\t6,4(2)\n"
  636.     "\tli\t3,-396\n"
  637.     "\tblrl";
  638. #define AllocRemember(rememberKey, size, flags) __AllocRemember(IntuitionBase, (rememberKey), (size), (flags))
  639.  
  640. VOID __FreeRemember(struct IntuitionBase *, struct Remember ** rememberKey, LONG reallyForget) =
  641.     "\tlwz\t11,100(2)\n"
  642.     "\tstw\t3,56(2)\n"
  643.     "\tmtlr\t11\n"
  644.     "\tstw\t4,32(2)\n"
  645.     "\tstw\t5,0(2)\n"
  646.     "\tli\t3,-408\n"
  647.     "\tblrl";
  648. #define FreeRemember(rememberKey, reallyForget) __FreeRemember(IntuitionBase, (rememberKey), (reallyForget))
  649.  
  650. ULONG __LockIBase(struct IntuitionBase *, ULONG dontknow) =
  651.     "\tlwz\t11,100(2)\n"
  652.     "\tstw\t3,56(2)\n"
  653.     "\tmtlr\t11\n"
  654.     "\tstw\t4,0(2)\n"
  655.     "\tli\t3,-414\n"
  656.     "\tblrl";
  657. #define LockIBase(dontknow) __LockIBase(IntuitionBase, (dontknow))
  658.  
  659. VOID __UnlockIBase(struct IntuitionBase *, ULONG ibLock) =
  660.     "\tlwz\t11,100(2)\n"
  661.     "\tstw\t3,56(2)\n"
  662.     "\tmtlr\t11\n"
  663.     "\tstw\t4,32(2)\n"
  664.     "\tli\t3,-420\n"
  665.     "\tblrl";
  666. #define UnlockIBase(ibLock) __UnlockIBase(IntuitionBase, (ibLock))
  667.  
  668. LONG __GetScreenData(struct IntuitionBase *, APTR buffer, ULONG size, ULONG type, const struct Screen * screen) =
  669.     "\tlwz\t11,100(2)\n"
  670.     "\tstw\t3,56(2)\n"
  671.     "\tmtlr\t11\n"
  672.     "\tstw\t4,32(2)\n"
  673.     "\tstw\t5,0(2)\n"
  674.     "\tstw\t6,4(2)\n"
  675.     "\tstw\t7,36(2)\n"
  676.     "\tli\t3,-426\n"
  677.     "\tblrl";
  678. #define GetScreenData(buffer, size, type, screen) __GetScreenData(IntuitionBase, (buffer), (size), (type), (screen))
  679.  
  680. VOID __RefreshGList(struct IntuitionBase *, struct Gadget * gadgets, struct Window * window, struct Requester * requester, LONG numGad) =
  681.     "\tlwz\t11,100(2)\n"
  682.     "\tstw\t3,56(2)\n"
  683.     "\tmtlr\t11\n"
  684.     "\tstw\t4,32(2)\n"
  685.     "\tstw\t5,36(2)\n"
  686.     "\tstw\t6,40(2)\n"
  687.     "\tstw\t7,0(2)\n"
  688.     "\tli\t3,-432\n"
  689.     "\tblrl";
  690. #define RefreshGList(gadgets, window, requester, numGad) __RefreshGList(IntuitionBase, (gadgets), (window), (requester), (numGad))
  691.  
  692. UWORD __AddGList(struct IntuitionBase *, struct Window * window, struct Gadget * gadget, ULONG position, LONG numGad, struct Requester * requester) =
  693.     "\tlwz\t11,100(2)\n"
  694.     "\tstw\t3,56(2)\n"
  695.     "\tmtlr\t11\n"
  696.     "\tstw\t4,32(2)\n"
  697.     "\tstw\t5,36(2)\n"
  698.     "\tstw\t6,0(2)\n"
  699.     "\tstw\t7,4(2)\n"
  700.     "\tstw\t8,40(2)\n"
  701.     "\tli\t3,-438\n"
  702.     "\tblrl";
  703. #define AddGList(window, gadget, position, numGad, requester) __AddGList(IntuitionBase, (window), (gadget), (position), (numGad), (requester))
  704.  
  705. UWORD __RemoveGList(struct IntuitionBase *, struct Window * remPtr, struct Gadget * gadget, LONG numGad) =
  706.     "\tlwz\t11,100(2)\n"
  707.     "\tstw\t3,56(2)\n"
  708.     "\tmtlr\t11\n"
  709.     "\tstw\t4,32(2)\n"
  710.     "\tstw\t5,36(2)\n"
  711.     "\tstw\t6,0(2)\n"
  712.     "\tli\t3,-444\n"
  713.     "\tblrl";
  714. #define RemoveGList(remPtr, gadget, numGad) __RemoveGList(IntuitionBase, (remPtr), (gadget), (numGad))
  715.  
  716. VOID __ActivateWindow(struct IntuitionBase *, struct Window * window) =
  717.     "\tlwz\t11,100(2)\n"
  718.     "\tstw\t3,56(2)\n"
  719.     "\tmtlr\t11\n"
  720.     "\tstw\t4,32(2)\n"
  721.     "\tli\t3,-450\n"
  722.     "\tblrl";
  723. #define ActivateWindow(window) __ActivateWindow(IntuitionBase, (window))
  724.  
  725. VOID __RefreshWindowFrame(struct IntuitionBase *, struct Window * window) =
  726.     "\tlwz\t11,100(2)\n"
  727.     "\tstw\t3,56(2)\n"
  728.     "\tmtlr\t11\n"
  729.     "\tstw\t4,32(2)\n"
  730.     "\tli\t3,-456\n"
  731.     "\tblrl";
  732. #define RefreshWindowFrame(window) __RefreshWindowFrame(IntuitionBase, (window))
  733.  
  734. BOOL __ActivateGadget(struct IntuitionBase *, struct Gadget * gadgets, struct Window * window, struct Requester * requester) =
  735.     "\tlwz\t11,100(2)\n"
  736.     "\tstw\t3,56(2)\n"
  737.     "\tmtlr\t11\n"
  738.     "\tstw\t4,32(2)\n"
  739.     "\tstw\t5,36(2)\n"
  740.     "\tstw\t6,40(2)\n"
  741.     "\tli\t3,-462\n"
  742.     "\tblrl";
  743. #define ActivateGadget(gadgets, window, requester) __ActivateGadget(IntuitionBase, (gadgets), (window), (requester))
  744.  
  745. VOID __NewModifyProp(struct IntuitionBase *, struct Gadget * gadget, struct Window * window, struct Requester * requester, ULONG flags, ULONG horizPot, ULONG vertPot, ULONG horizBody, ULONG vertBody, LONG numGad) =
  746.     "\tlwz\t11,100(2)\n"
  747.     "\tstw\t3,56(2)\n"
  748.     "\tmtlr\t11\n"
  749.     "\tstw\t4,32(2)\n"
  750.     "\tstw\t5,36(2)\n"
  751.     "\tstw\t6,40(2)\n"
  752.     "\tstw\t7,0(2)\n"
  753.     "\tstw\t8,4(2)\n"
  754.     "\tstw\t9,8(2)\n"
  755.     "\tstw\t10,12(2)\n"
  756.     "\tlwz\t11,8(1)\n"
  757.     "\tstw\t11,16(2)\n"
  758.     "\tlwz\t11,12(1)\n"
  759.     "\tstw\t11,20(2)\n"
  760.     "\tli\t3,-468\n"
  761.     "\tblrl";
  762. #define NewModifyProp(gadget, window, requester, flags, horizPot, vertPot, horizBody, vertBody, numGad) __NewModifyProp(IntuitionBase, (gadget), (window), (requester), (flags), (horizPot), (vertPot), (horizBody), (vertBody), (numGad))
  763.  
  764. LONG __QueryOverscan(struct IntuitionBase *, ULONG displayID, struct Rectangle * rect, LONG oScanType) =
  765.     "\tlwz\t11,100(2)\n"
  766.     "\tstw\t3,56(2)\n"
  767.     "\tmtlr\t11\n"
  768.     "\tstw\t4,32(2)\n"
  769.     "\tstw\t5,36(2)\n"
  770.     "\tstw\t6,0(2)\n"
  771.     "\tli\t3,-474\n"
  772.     "\tblrl";
  773. #define QueryOverscan(displayID, rect, oScanType) __QueryOverscan(IntuitionBase, (displayID), (rect), (oScanType))
  774.  
  775. VOID __MoveWindowInFrontOf(struct IntuitionBase *, struct Window * window, struct Window * behindWindow) =
  776.     "\tlwz\t11,100(2)\n"
  777.     "\tstw\t3,56(2)\n"
  778.     "\tmtlr\t11\n"
  779.     "\tstw\t4,32(2)\n"
  780.     "\tstw\t5,36(2)\n"
  781.     "\tli\t3,-480\n"
  782.     "\tblrl";
  783. #define MoveWindowInFrontOf(window, behindWindow) __MoveWindowInFrontOf(IntuitionBase, (window), (behindWindow))
  784.  
  785. VOID __ChangeWindowBox(struct IntuitionBase *, struct Window * window, LONG left, LONG top, LONG width, LONG height) =
  786.     "\tlwz\t11,100(2)\n"
  787.     "\tstw\t3,56(2)\n"
  788.     "\tmtlr\t11\n"
  789.     "\tstw\t4,32(2)\n"
  790.     "\tstw\t5,0(2)\n"
  791.     "\tstw\t6,4(2)\n"
  792.     "\tstw\t7,8(2)\n"
  793.     "\tstw\t8,12(2)\n"
  794.     "\tli\t3,-486\n"
  795.     "\tblrl";
  796. #define ChangeWindowBox(window, left, top, width, height) __ChangeWindowBox(IntuitionBase, (window), (left), (top), (width), (height))
  797.  
  798. struct Hook * __SetEditHook(struct IntuitionBase *, struct Hook * hook) =
  799.     "\tlwz\t11,100(2)\n"
  800.     "\tstw\t3,56(2)\n"
  801.     "\tmtlr\t11\n"
  802.     "\tstw\t4,32(2)\n"
  803.     "\tli\t3,-492\n"
  804.     "\tblrl";
  805. #define SetEditHook(hook) __SetEditHook(IntuitionBase, (hook))
  806.  
  807. LONG __SetMouseQueue(struct IntuitionBase *, struct Window * window, ULONG queueLength) =
  808.     "\tlwz\t11,100(2)\n"
  809.     "\tstw\t3,56(2)\n"
  810.     "\tmtlr\t11\n"
  811.     "\tstw\t4,32(2)\n"
  812.     "\tstw\t5,0(2)\n"
  813.     "\tli\t3,-498\n"
  814.     "\tblrl";
  815. #define SetMouseQueue(window, queueLength) __SetMouseQueue(IntuitionBase, (window), (queueLength))
  816.  
  817. VOID __ZipWindow(struct IntuitionBase *, struct Window * window) =
  818.     "\tlwz\t11,100(2)\n"
  819.     "\tstw\t3,56(2)\n"
  820.     "\tmtlr\t11\n"
  821.     "\tstw\t4,32(2)\n"
  822.     "\tli\t3,-504\n"
  823.     "\tblrl";
  824. #define ZipWindow(window) __ZipWindow(IntuitionBase, (window))
  825.  
  826. struct Screen * __LockPubScreen(struct IntuitionBase *, CONST_STRPTR name) =
  827.     "\tlwz\t11,100(2)\n"
  828.     "\tstw\t3,56(2)\n"
  829.     "\tmtlr\t11\n"
  830.     "\tstw\t4,32(2)\n"
  831.     "\tli\t3,-510\n"
  832.     "\tblrl";
  833. #define LockPubScreen(name) __LockPubScreen(IntuitionBase, (name))
  834.  
  835. VOID __UnlockPubScreen(struct IntuitionBase *, CONST_STRPTR name, struct Screen * screen) =
  836.     "\tlwz\t11,100(2)\n"
  837.     "\tstw\t3,56(2)\n"
  838.     "\tmtlr\t11\n"
  839.     "\tstw\t4,32(2)\n"
  840.     "\tstw\t5,36(2)\n"
  841.     "\tli\t3,-516\n"
  842.     "\tblrl";
  843. #define UnlockPubScreen(name, screen) __UnlockPubScreen(IntuitionBase, (name), (screen))
  844.  
  845. struct List * __LockPubScreenList(struct IntuitionBase *) =
  846.     "\tlwz\t11,100(2)\n"
  847.     "\tstw\t3,56(2)\n"
  848.     "\tmtlr\t11\n"
  849.     "\tli\t3,-522\n"
  850.     "\tblrl";
  851. #define LockPubScreenList() __LockPubScreenList(IntuitionBase)
  852.  
  853. VOID __UnlockPubScreenList(struct IntuitionBase *) =
  854.     "\tlwz\t11,100(2)\n"
  855.     "\tstw\t3,56(2)\n"
  856.     "\tmtlr\t11\n"
  857.     "\tli\t3,-528\n"
  858.     "\tblrl";
  859. #define UnlockPubScreenList() __UnlockPubScreenList(IntuitionBase)
  860.  
  861. STRPTR __NextPubScreen(struct IntuitionBase *, const struct Screen * screen, STRPTR namebuf) =
  862.     "\tlwz\t11,100(2)\n"
  863.     "\tstw\t3,56(2)\n"
  864.     "\tmtlr\t11\n"
  865.     "\tstw\t4,32(2)\n"
  866.     "\tstw\t5,36(2)\n"
  867.     "\tli\t3,-534\n"
  868.     "\tblrl";
  869. #define NextPubScreen(screen, namebuf) __NextPubScreen(IntuitionBase, (screen), (namebuf))
  870.  
  871. VOID __SetDefaultPubScreen(struct IntuitionBase *, CONST_STRPTR name) =
  872.     "\tlwz\t11,100(2)\n"
  873.     "\tstw\t3,56(2)\n"
  874.     "\tmtlr\t11\n"
  875.     "\tstw\t4,32(2)\n"
  876.     "\tli\t3,-540\n"
  877.     "\tblrl";
  878. #define SetDefaultPubScreen(name) __SetDefaultPubScreen(IntuitionBase, (name))
  879.  
  880. UWORD __SetPubScreenModes(struct IntuitionBase *, ULONG modes) =
  881.     "\tlwz\t11,100(2)\n"
  882.     "\tstw\t3,56(2)\n"
  883.     "\tmtlr\t11\n"
  884.     "\tstw\t4,0(2)\n"
  885.     "\tli\t3,-546\n"
  886.     "\tblrl";
  887. #define SetPubScreenModes(modes) __SetPubScreenModes(IntuitionBase, (modes))
  888.  
  889. UWORD __PubScreenStatus(struct IntuitionBase *, struct Screen * screen, ULONG statusFlags) =
  890.     "\tlwz\t11,100(2)\n"
  891.     "\tstw\t3,56(2)\n"
  892.     "\tmtlr\t11\n"
  893.     "\tstw\t4,32(2)\n"
  894.     "\tstw\t5,0(2)\n"
  895.     "\tli\t3,-552\n"
  896.     "\tblrl";
  897. #define PubScreenStatus(screen, statusFlags) __PubScreenStatus(IntuitionBase, (screen), (statusFlags))
  898.  
  899. struct RastPort    * __ObtainGIRPort(struct IntuitionBase *, struct GadgetInfo * gInfo) =
  900.     "\tlwz\t11,100(2)\n"
  901.     "\tstw\t3,56(2)\n"
  902.     "\tmtlr\t11\n"
  903.     "\tstw\t4,32(2)\n"
  904.     "\tli\t3,-558\n"
  905.     "\tblrl";
  906. #define ObtainGIRPort(gInfo) __ObtainGIRPort(IntuitionBase, (gInfo))
  907.  
  908. VOID __ReleaseGIRPort(struct IntuitionBase *, struct RastPort * rp) =
  909.     "\tlwz\t11,100(2)\n"
  910.     "\tstw\t3,56(2)\n"
  911.     "\tmtlr\t11\n"
  912.     "\tstw\t4,32(2)\n"
  913.     "\tli\t3,-564\n"
  914.     "\tblrl";
  915. #define ReleaseGIRPort(rp) __ReleaseGIRPort(IntuitionBase, (rp))
  916.  
  917. VOID __GadgetMouse(struct IntuitionBase *, struct Gadget * gadget, struct GadgetInfo * gInfo, WORD * mousePoint) =
  918.     "\tlwz\t11,100(2)\n"
  919.     "\tstw\t3,56(2)\n"
  920.     "\tmtlr\t11\n"
  921.     "\tstw\t4,32(2)\n"
  922.     "\tstw\t5,36(2)\n"
  923.     "\tstw\t6,40(2)\n"
  924.     "\tli\t3,-570\n"
  925.     "\tblrl";
  926. #define GadgetMouse(gadget, gInfo, mousePoint) __GadgetMouse(IntuitionBase, (gadget), (gInfo), (mousePoint))
  927.  
  928. VOID __GetDefaultPubScreen(struct IntuitionBase *, STRPTR nameBuffer) =
  929.     "\tlwz\t11,100(2)\n"
  930.     "\tstw\t3,56(2)\n"
  931.     "\tmtlr\t11\n"
  932.     "\tstw\t4,32(2)\n"
  933.     "\tli\t3,-582\n"
  934.     "\tblrl";
  935. #define GetDefaultPubScreen(nameBuffer) __GetDefaultPubScreen(IntuitionBase, (nameBuffer))
  936.  
  937. LONG __EasyRequestArgs(struct IntuitionBase *, struct Window * window, const struct EasyStruct * easyStruct, ULONG * idcmpPtr, const APTR args) =
  938.     "\tlwz\t11,100(2)\n"
  939.     "\tstw\t3,56(2)\n"
  940.     "\tmtlr\t11\n"
  941.     "\tstw\t4,32(2)\n"
  942.     "\tstw\t5,36(2)\n"
  943.     "\tstw\t6,40(2)\n"
  944.     "\tstw\t7,44(2)\n"
  945.     "\tli\t3,-588\n"
  946.     "\tblrl";
  947. #define EasyRequestArgs(window, easyStruct, idcmpPtr, args) __EasyRequestArgs(IntuitionBase, (window), (easyStruct), (idcmpPtr), (args))
  948.  
  949. #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
  950. LONG __EasyRequest(struct IntuitionBase *, long, long, long, long, struct Window * window, const struct EasyStruct * easyStruct, ULONG * idcmpPtr, ...) =
  951.     "\tlwz\t11,100(2)\n"
  952.     "\tstw\t3,56(2)\n"
  953.     "\tmtlr\t11\n"
  954.     "\tstw\t8,32(2)\n"
  955.     "\tstw\t9,36(2)\n"
  956.     "\tstw\t10,40(2)\n"
  957.     "\taddi\t4,1,8\n"
  958.     "\tstw\t4,44(2)\n"
  959.     "\tli\t3,-588\n"
  960.     "\tblrl";
  961. #define EasyRequest(window, easyStruct, ...) __EasyRequest(IntuitionBase, 0, 0, 0, 0, (window), (easyStruct), __VA_ARGS__)
  962. #endif
  963.  
  964. struct Window * __BuildEasyRequestArgs(struct IntuitionBase *, struct Window * window, const struct EasyStruct * easyStruct, ULONG idcmp, const APTR args) =
  965.     "\tlwz\t11,100(2)\n"
  966.     "\tstw\t3,56(2)\n"
  967.     "\tmtlr\t11\n"
  968.     "\tstw\t4,32(2)\n"
  969.     "\tstw\t5,36(2)\n"
  970.     "\tstw\t6,0(2)\n"
  971.     "\tstw\t7,44(2)\n"
  972.     "\tli\t3,-594\n"
  973.     "\tblrl";
  974. #define BuildEasyRequestArgs(window, easyStruct, idcmp, args) __BuildEasyRequestArgs(IntuitionBase, (window), (easyStruct), (idcmp), (args))
  975.  
  976. #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
  977. struct Window * __BuildEasyRequest(struct IntuitionBase *, long, long, long, long, struct Window * window, const struct EasyStruct * easyStruct, ULONG idcmp, ...) =
  978.     "\tlwz\t11,100(2)\n"
  979.     "\tstw\t3,56(2)\n"
  980.     "\tmtlr\t11\n"
  981.     "\tstw\t8,32(2)\n"
  982.     "\tstw\t9,36(2)\n"
  983.     "\tstw\t10,0(2)\n"
  984.     "\taddi\t4,1,8\n"
  985.     "\tstw\t4,44(2)\n"
  986.     "\tli\t3,-594\n"
  987.     "\tblrl";
  988. #define BuildEasyRequest(window, easyStruct, ...) __BuildEasyRequest(IntuitionBase, 0, 0, 0, 0, (window), (easyStruct), __VA_ARGS__)
  989. #endif
  990.  
  991. LONG __SysReqHandler(struct IntuitionBase *, struct Window * window, ULONG * idcmpPtr, LONG waitInput) =
  992.     "\tlwz\t11,100(2)\n"
  993.     "\tstw\t3,56(2)\n"
  994.     "\tmtlr\t11\n"
  995.     "\tstw\t4,32(2)\n"
  996.     "\tstw\t5,36(2)\n"
  997.     "\tstw\t6,0(2)\n"
  998.     "\tli\t3,-600\n"
  999.     "\tblrl";
  1000. #define SysReqHandler(window, idcmpPtr, waitInput) __SysReqHandler(IntuitionBase, (window), (idcmpPtr), (waitInput))
  1001.  
  1002. struct Window * __OpenWindowTagList(struct IntuitionBase *, const struct NewWindow * newWindow, const struct TagItem * tagList) =
  1003.     "\tlwz\t11,100(2)\n"
  1004.     "\tstw\t3,56(2)\n"
  1005.     "\tmtlr\t11\n"
  1006.     "\tstw\t4,32(2)\n"
  1007.     "\tstw\t5,36(2)\n"
  1008.     "\tli\t3,-606\n"
  1009.     "\tblrl";
  1010. #define OpenWindowTagList(newWindow, tagList) __OpenWindowTagList(IntuitionBase, (newWindow), (tagList))
  1011.  
  1012. #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
  1013. struct Window * __OpenWindowTags(struct IntuitionBase *, long, long, long, long, long, long, const struct NewWindow * newWindow, ULONG tagList, ...) =
  1014.     "\tlwz\t11,100(2)\n"
  1015.     "\tstw\t3,56(2)\n"
  1016.     "\tmtlr\t11\n"
  1017.     "\tstw\t10,32(2)\n"
  1018.     "\taddi\t4,1,8\n"
  1019.     "\tstw\t4,36(2)\n"
  1020.     "\tli\t3,-606\n"
  1021.     "\tblrl";
  1022. #define OpenWindowTags(newWindow, ...) __OpenWindowTags(IntuitionBase, 0, 0, 0, 0, 0, 0, (newWindow), __VA_ARGS__)
  1023. #endif
  1024.  
  1025. struct Screen * __OpenScreenTagList(struct IntuitionBase *, const struct NewScreen * newScreen, const struct TagItem * tagList) =
  1026.     "\tlwz\t11,100(2)\n"
  1027.     "\tstw\t3,56(2)\n"
  1028.     "\tmtlr\t11\n"
  1029.     "\tstw\t4,32(2)\n"
  1030.     "\tstw\t5,36(2)\n"
  1031.     "\tli\t3,-612\n"
  1032.     "\tblrl";
  1033. #define OpenScreenTagList(newScreen, tagList) __OpenScreenTagList(IntuitionBase, (newScreen), (tagList))
  1034.  
  1035. #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
  1036. struct Screen * __OpenScreenTags(struct IntuitionBase *, long, long, long, long, long, long, const struct NewScreen * newScreen, ULONG tagList, ...) =
  1037.     "\tlwz\t11,100(2)\n"
  1038.     "\tstw\t3,56(2)\n"
  1039.     "\tmtlr\t11\n"
  1040.     "\tstw\t10,32(2)\n"
  1041.     "\taddi\t4,1,8\n"
  1042.     "\tstw\t4,36(2)\n"
  1043.     "\tli\t3,-612\n"
  1044.     "\tblrl";
  1045. #define OpenScreenTags(newScreen, ...) __OpenScreenTags(IntuitionBase, 0, 0, 0, 0, 0, 0, (newScreen), __VA_ARGS__)
  1046. #endif
  1047.  
  1048. VOID __DrawImageState(struct IntuitionBase *, struct RastPort * rp, struct Image * image, LONG leftOffset, LONG topOffset, ULONG state, const struct DrawInfo * drawInfo) =
  1049.     "\tlwz\t11,100(2)\n"
  1050.     "\tstw\t3,56(2)\n"
  1051.     "\tmtlr\t11\n"
  1052.     "\tstw\t4,32(2)\n"
  1053.     "\tstw\t5,36(2)\n"
  1054.     "\tstw\t6,0(2)\n"
  1055.     "\tstw\t7,4(2)\n"
  1056.     "\tstw\t8,8(2)\n"
  1057.     "\tstw\t9,40(2)\n"
  1058.     "\tli\t3,-618\n"
  1059.     "\tblrl";
  1060. #define DrawImageState(rp, image, leftOffset, topOffset, state, drawInfo) __DrawImageState(IntuitionBase, (rp), (image), (leftOffset), (topOffset), (state), (drawInfo))
  1061.  
  1062. BOOL __PointInImage(struct IntuitionBase *, ULONG point, struct Image * image) =
  1063.     "\tlwz\t11,100(2)\n"
  1064.     "\tstw\t3,56(2)\n"
  1065.     "\tmtlr\t11\n"
  1066.     "\tstw\t4,0(2)\n"
  1067.     "\tstw\t5,32(2)\n"
  1068.     "\tli\t3,-624\n"
  1069.     "\tblrl";
  1070. #define PointInImage(point, image) __PointInImage(IntuitionBase, (point), (image))
  1071.  
  1072. VOID __EraseImage(struct IntuitionBase *, struct RastPort * rp, struct Image * image, LONG leftOffset, LONG topOffset) =
  1073.     "\tlwz\t11,100(2)\n"
  1074.     "\tstw\t3,56(2)\n"
  1075.     "\tmtlr\t11\n"
  1076.     "\tstw\t4,32(2)\n"
  1077.     "\tstw\t5,36(2)\n"
  1078.     "\tstw\t6,0(2)\n"
  1079.     "\tstw\t7,4(2)\n"
  1080.     "\tli\t3,-630\n"
  1081.     "\tblrl";
  1082. #define EraseImage(rp, image, leftOffset, topOffset) __EraseImage(IntuitionBase, (rp), (image), (leftOffset), (topOffset))
  1083.  
  1084. APTR __NewObjectA(struct IntuitionBase *, struct IClass * classPtr, CONST_STRPTR classID, const struct TagItem * tagList) =
  1085.     "\tlwz\t11,100(2)\n"
  1086.     "\tstw\t3,56(2)\n"
  1087.     "\tmtlr\t11\n"
  1088.     "\tstw\t4,32(2)\n"
  1089.     "\tstw\t5,36(2)\n"
  1090.     "\tstw\t6,40(2)\n"
  1091.     "\tli\t3,-636\n"
  1092.     "\tblrl";
  1093. #define NewObjectA(classPtr, classID, tagList) __NewObjectA(IntuitionBase, (classPtr), (classID), (tagList))
  1094.  
  1095. #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
  1096. APTR __NewObject(struct IntuitionBase *, long, long, long, long, long, struct IClass * classPtr, CONST_STRPTR classID, ULONG tagList, ...) =
  1097.     "\tlwz\t11,100(2)\n"
  1098.     "\tstw\t3,56(2)\n"
  1099.     "\tmtlr\t11\n"
  1100.     "\tstw\t9,32(2)\n"
  1101.     "\tstw\t10,36(2)\n"
  1102.     "\taddi\t4,1,8\n"
  1103.     "\tstw\t4,40(2)\n"
  1104.     "\tli\t3,-636\n"
  1105.     "\tblrl";
  1106. #define NewObject(classPtr, classID, ...) __NewObject(IntuitionBase, 0, 0, 0, 0, 0, (classPtr), (classID), __VA_ARGS__)
  1107. #endif
  1108.  
  1109. VOID __DisposeObject(struct IntuitionBase *, APTR object) =
  1110.     "\tlwz\t11,100(2)\n"
  1111.     "\tstw\t3,56(2)\n"
  1112.     "\tmtlr\t11\n"
  1113.     "\tstw\t4,32(2)\n"
  1114.     "\tli\t3,-642\n"
  1115.     "\tblrl";
  1116. #define DisposeObject(object) __DisposeObject(IntuitionBase, (object))
  1117.  
  1118. ULONG __SetAttrsA(struct IntuitionBase *, APTR object, const struct TagItem * tagList) =
  1119.     "\tlwz\t11,100(2)\n"
  1120.     "\tstw\t3,56(2)\n"
  1121.     "\tmtlr\t11\n"
  1122.     "\tstw\t4,32(2)\n"
  1123.     "\tstw\t5,36(2)\n"
  1124.     "\tli\t3,-648\n"
  1125.     "\tblrl";
  1126. #define SetAttrsA(object, tagList) __SetAttrsA(IntuitionBase, (object), (tagList))
  1127.  
  1128. #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
  1129. ULONG __SetAttrs(struct IntuitionBase *, long, long, long, long, long, long, APTR object, ULONG tagList, ...) =
  1130.     "\tlwz\t11,100(2)\n"
  1131.     "\tstw\t3,56(2)\n"
  1132.     "\tmtlr\t11\n"
  1133.     "\tstw\t10,32(2)\n"
  1134.     "\taddi\t4,1,8\n"
  1135.     "\tstw\t4,36(2)\n"
  1136.     "\tli\t3,-648\n"
  1137.     "\tblrl";
  1138. #define SetAttrs(object, ...) __SetAttrs(IntuitionBase, 0, 0, 0, 0, 0, 0, (object), __VA_ARGS__)
  1139. #endif
  1140.  
  1141. ULONG __GetAttr(struct IntuitionBase *, ULONG attrID, APTR object, ULONG * storagePtr) =
  1142.     "\tlwz\t11,100(2)\n"
  1143.     "\tstw\t3,56(2)\n"
  1144.     "\tmtlr\t11\n"
  1145.     "\tstw\t4,0(2)\n"
  1146.     "\tstw\t5,32(2)\n"
  1147.     "\tstw\t6,36(2)\n"
  1148.     "\tli\t3,-654\n"
  1149.     "\tblrl";
  1150. #define GetAttr(attrID, object, storagePtr) __GetAttr(IntuitionBase, (attrID), (object), (storagePtr))
  1151.  
  1152. ULONG __SetGadgetAttrsA(struct IntuitionBase *, struct Gadget * gadget, struct Window * window, struct Requester * requester, const struct TagItem * tagList) =
  1153.     "\tlwz\t11,100(2)\n"
  1154.     "\tstw\t3,56(2)\n"
  1155.     "\tmtlr\t11\n"
  1156.     "\tstw\t4,32(2)\n"
  1157.     "\tstw\t5,36(2)\n"
  1158.     "\tstw\t6,40(2)\n"
  1159.     "\tstw\t7,44(2)\n"
  1160.     "\tli\t3,-660\n"
  1161.     "\tblrl";
  1162. #define SetGadgetAttrsA(gadget, window, requester, tagList) __SetGadgetAttrsA(IntuitionBase, (gadget), (window), (requester), (tagList))
  1163.  
  1164. #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
  1165. ULONG __SetGadgetAttrs(struct IntuitionBase *, long, long, long, long, struct Gadget * gadget, struct Window * window, struct Requester * requester, ULONG tagList, ...) =
  1166.     "\tlwz\t11,100(2)\n"
  1167.     "\tstw\t3,56(2)\n"
  1168.     "\tmtlr\t11\n"
  1169.     "\tstw\t8,32(2)\n"
  1170.     "\tstw\t9,36(2)\n"
  1171.     "\tstw\t10,40(2)\n"
  1172.     "\taddi\t4,1,8\n"
  1173.     "\tstw\t4,44(2)\n"
  1174.     "\tli\t3,-660\n"
  1175.     "\tblrl";
  1176. #define SetGadgetAttrs(gadget, window, requester, ...) __SetGadgetAttrs(IntuitionBase, 0, 0, 0, 0, (gadget), (window), (requester), __VA_ARGS__)
  1177. #endif
  1178.  
  1179. APTR __NextObject(struct IntuitionBase *, APTR objectPtrPtr) =
  1180.     "\tlwz\t11,100(2)\n"
  1181.     "\tstw\t3,56(2)\n"
  1182.     "\tmtlr\t11\n"
  1183.     "\tstw\t4,32(2)\n"
  1184.     "\tli\t3,-666\n"
  1185.     "\tblrl";
  1186. #define NextObject(objectPtrPtr) __NextObject(IntuitionBase, (objectPtrPtr))
  1187.  
  1188. struct IClass * __MakeClass(struct IntuitionBase *, CONST_STRPTR classID, CONST_STRPTR superClassID, const struct IClass * superClassPtr, ULONG instanceSize, ULONG flags) =
  1189.     "\tlwz\t11,100(2)\n"
  1190.     "\tstw\t3,56(2)\n"
  1191.     "\tmtlr\t11\n"
  1192.     "\tstw\t4,32(2)\n"
  1193.     "\tstw\t5,36(2)\n"
  1194.     "\tstw\t6,40(2)\n"
  1195.     "\tstw\t7,0(2)\n"
  1196.     "\tstw\t8,4(2)\n"
  1197.     "\tli\t3,-678\n"
  1198.     "\tblrl";
  1199. #define MakeClass(classID, superClassID, superClassPtr, instanceSize, flags) __MakeClass(IntuitionBase, (classID), (superClassID), (superClassPtr), (instanceSize), (flags))
  1200.  
  1201. VOID __AddClass(struct IntuitionBase *, struct IClass * classPtr) =
  1202.     "\tlwz\t11,100(2)\n"
  1203.     "\tstw\t3,56(2)\n"
  1204.     "\tmtlr\t11\n"
  1205.     "\tstw\t4,32(2)\n"
  1206.     "\tli\t3,-684\n"
  1207.     "\tblrl";
  1208. #define AddClass(classPtr) __AddClass(IntuitionBase, (classPtr))
  1209.  
  1210. struct DrawInfo * __GetScreenDrawInfo(struct IntuitionBase *, struct Screen * screen) =
  1211.     "\tlwz\t11,100(2)\n"
  1212.     "\tstw\t3,56(2)\n"
  1213.     "\tmtlr\t11\n"
  1214.     "\tstw\t4,32(2)\n"
  1215.     "\tli\t3,-690\n"
  1216.     "\tblrl";
  1217. #define GetScreenDrawInfo(screen) __GetScreenDrawInfo(IntuitionBase, (screen))
  1218.  
  1219. VOID __FreeScreenDrawInfo(struct IntuitionBase *, struct Screen * screen, struct DrawInfo * drawInfo) =
  1220.     "\tlwz\t11,100(2)\n"
  1221.     "\tstw\t3,56(2)\n"
  1222.     "\tmtlr\t11\n"
  1223.     "\tstw\t4,32(2)\n"
  1224.     "\tstw\t5,36(2)\n"
  1225.     "\tli\t3,-696\n"
  1226.     "\tblrl";
  1227. #define FreeScreenDrawInfo(screen, drawInfo) __FreeScreenDrawInfo(IntuitionBase, (screen), (drawInfo))
  1228.  
  1229. BOOL __ResetMenuStrip(struct IntuitionBase *, struct Window * window, struct Menu * menu) =
  1230.     "\tlwz\t11,100(2)\n"
  1231.     "\tstw\t3,56(2)\n"
  1232.     "\tmtlr\t11\n"
  1233.     "\tstw\t4,32(2)\n"
  1234.     "\tstw\t5,36(2)\n"
  1235.     "\tli\t3,-702\n"
  1236.     "\tblrl";
  1237. #define ResetMenuStrip(window, menu) __ResetMenuStrip(IntuitionBase, (window), (menu))
  1238.  
  1239. VOID __RemoveClass(struct IntuitionBase *, struct IClass * classPtr) =
  1240.     "\tlwz\t11,100(2)\n"
  1241.     "\tstw\t3,56(2)\n"
  1242.     "\tmtlr\t11\n"
  1243.     "\tstw\t4,32(2)\n"
  1244.     "\tli\t3,-708\n"
  1245.     "\tblrl";
  1246. #define RemoveClass(classPtr) __RemoveClass(IntuitionBase, (classPtr))
  1247.  
  1248. BOOL __FreeClass(struct IntuitionBase *, struct IClass * classPtr) =
  1249.     "\tlwz\t11,100(2)\n"
  1250.     "\tstw\t3,56(2)\n"
  1251.     "\tmtlr\t11\n"
  1252.     "\tstw\t4,32(2)\n"
  1253.     "\tli\t3,-714\n"
  1254.     "\tblrl";
  1255. #define FreeClass(classPtr) __FreeClass(IntuitionBase, (classPtr))
  1256.  
  1257. struct ScreenBuffer * __AllocScreenBuffer(struct IntuitionBase *, struct Screen * sc, struct BitMap * bm, ULONG flags) =
  1258.     "\tlwz\t11,100(2)\n"
  1259.     "\tstw\t3,56(2)\n"
  1260.     "\tmtlr\t11\n"
  1261.     "\tstw\t4,32(2)\n"
  1262.     "\tstw\t5,36(2)\n"
  1263.     "\tstw\t6,0(2)\n"
  1264.     "\tli\t3,-768\n"
  1265.     "\tblrl";
  1266. #define AllocScreenBuffer(sc, bm, flags) __AllocScreenBuffer(IntuitionBase, (sc), (bm), (flags))
  1267.  
  1268. VOID __FreeScreenBuffer(struct IntuitionBase *, struct Screen * sc, struct ScreenBuffer * sb) =
  1269.     "\tlwz\t11,100(2)\n"
  1270.     "\tstw\t3,56(2)\n"
  1271.     "\tmtlr\t11\n"
  1272.     "\tstw\t4,32(2)\n"
  1273.     "\tstw\t5,36(2)\n"
  1274.     "\tli\t3,-774\n"
  1275.     "\tblrl";
  1276. #define FreeScreenBuffer(sc, sb) __FreeScreenBuffer(IntuitionBase, (sc), (sb))
  1277.  
  1278. ULONG __ChangeScreenBuffer(struct IntuitionBase *, struct Screen * sc, struct ScreenBuffer * sb) =
  1279.     "\tlwz\t11,100(2)\n"
  1280.     "\tstw\t3,56(2)\n"
  1281.     "\tmtlr\t11\n"
  1282.     "\tstw\t4,32(2)\n"
  1283.     "\tstw\t5,36(2)\n"
  1284.     "\tli\t3,-780\n"
  1285.     "\tblrl";
  1286. #define ChangeScreenBuffer(sc, sb) __ChangeScreenBuffer(IntuitionBase, (sc), (sb))
  1287.  
  1288. VOID __ScreenDepth(struct IntuitionBase *, struct Screen * screen, ULONG flags, APTR reserved) =
  1289.     "\tlwz\t11,100(2)\n"
  1290.     "\tstw\t3,56(2)\n"
  1291.     "\tmtlr\t11\n"
  1292.     "\tstw\t4,32(2)\n"
  1293.     "\tstw\t5,0(2)\n"
  1294.     "\tstw\t6,36(2)\n"
  1295.     "\tli\t3,-786\n"
  1296.     "\tblrl";
  1297. #define ScreenDepth(screen, flags, reserved) __ScreenDepth(IntuitionBase, (screen), (flags), (reserved))
  1298.  
  1299. VOID __ScreenPosition(struct IntuitionBase *, struct Screen * screen, ULONG flags, LONG x1, LONG y1, LONG x2, LONG y2) =
  1300.     "\tlwz\t11,100(2)\n"
  1301.     "\tstw\t3,56(2)\n"
  1302.     "\tmtlr\t11\n"
  1303.     "\tstw\t4,32(2)\n"
  1304.     "\tstw\t5,0(2)\n"
  1305.     "\tstw\t6,4(2)\n"
  1306.     "\tstw\t7,8(2)\n"
  1307.     "\tstw\t8,12(2)\n"
  1308.     "\tstw\t9,16(2)\n"
  1309.     "\tli\t3,-792\n"
  1310.     "\tblrl";
  1311. #define ScreenPosition(screen, flags, x1, y1, x2, y2) __ScreenPosition(IntuitionBase, (screen), (flags), (x1), (y1), (x2), (y2))
  1312.  
  1313. VOID __ScrollWindowRaster(struct IntuitionBase *, struct Window * win, LONG dx, LONG dy, LONG xMin, LONG yMin, LONG xMax, LONG yMax) =
  1314.     "\tlwz\t11,100(2)\n"
  1315.     "\tstw\t3,56(2)\n"
  1316.     "\tmtlr\t11\n"
  1317.     "\tstw\t4,36(2)\n"
  1318.     "\tstw\t5,0(2)\n"
  1319.     "\tstw\t6,4(2)\n"
  1320.     "\tstw\t7,8(2)\n"
  1321.     "\tstw\t8,12(2)\n"
  1322.     "\tstw\t9,16(2)\n"
  1323.     "\tstw\t10,20(2)\n"
  1324.     "\tli\t3,-798\n"
  1325.     "\tblrl";
  1326. #define ScrollWindowRaster(win, dx, dy, xMin, yMin, xMax, yMax) __ScrollWindowRaster(IntuitionBase, (win), (dx), (dy), (xMin), (yMin), (xMax), (yMax))
  1327.  
  1328. VOID __LendMenus(struct IntuitionBase *, struct Window * fromwindow, struct Window * towindow) =
  1329.     "\tlwz\t11,100(2)\n"
  1330.     "\tstw\t3,56(2)\n"
  1331.     "\tmtlr\t11\n"
  1332.     "\tstw\t4,32(2)\n"
  1333.     "\tstw\t5,36(2)\n"
  1334.     "\tli\t3,-804\n"
  1335.     "\tblrl";
  1336. #define LendMenus(fromwindow, towindow) __LendMenus(IntuitionBase, (fromwindow), (towindow))
  1337.  
  1338. ULONG __DoGadgetMethodA(struct IntuitionBase *, struct Gadget * gad, struct Window * win, struct Requester * req, Msg message) =
  1339.     "\tlwz\t11,100(2)\n"
  1340.     "\tstw\t3,56(2)\n"
  1341.     "\tmtlr\t11\n"
  1342.     "\tstw\t4,32(2)\n"
  1343.     "\tstw\t5,36(2)\n"
  1344.     "\tstw\t6,40(2)\n"
  1345.     "\tstw\t7,44(2)\n"
  1346.     "\tli\t3,-810\n"
  1347.     "\tblrl";
  1348. #define DoGadgetMethodA(gad, win, req, message) __DoGadgetMethodA(IntuitionBase, (gad), (win), (req), (message))
  1349.  
  1350. #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
  1351. ULONG __DoGadgetMethod(struct IntuitionBase *, long, long, long, long, struct Gadget * gad, struct Window * win, struct Requester * req, ULONG message, ...) =
  1352.     "\tlwz\t11,100(2)\n"
  1353.     "\tstw\t3,56(2)\n"
  1354.     "\tmtlr\t11\n"
  1355.     "\tstw\t8,32(2)\n"
  1356.     "\tstw\t9,36(2)\n"
  1357.     "\tstw\t10,40(2)\n"
  1358.     "\taddi\t4,1,8\n"
  1359.     "\tstw\t4,44(2)\n"
  1360.     "\tli\t3,-810\n"
  1361.     "\tblrl";
  1362. #define DoGadgetMethod(gad, win, req, ...) __DoGadgetMethod(IntuitionBase, 0, 0, 0, 0, (gad), (win), (req), __VA_ARGS__)
  1363. #endif
  1364.  
  1365. VOID __SetWindowPointerA(struct IntuitionBase *, struct Window * win, const struct TagItem * taglist) =
  1366.     "\tlwz\t11,100(2)\n"
  1367.     "\tstw\t3,56(2)\n"
  1368.     "\tmtlr\t11\n"
  1369.     "\tstw\t4,32(2)\n"
  1370.     "\tstw\t5,36(2)\n"
  1371.     "\tli\t3,-816\n"
  1372.     "\tblrl";
  1373. #define SetWindowPointerA(win, taglist) __SetWindowPointerA(IntuitionBase, (win), (taglist))
  1374.  
  1375. #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
  1376. VOID __SetWindowPointer(struct IntuitionBase *, long, long, long, long, long, long, struct Window * win, ULONG taglist, ...) =
  1377.     "\tlwz\t11,100(2)\n"
  1378.     "\tstw\t3,56(2)\n"
  1379.     "\tmtlr\t11\n"
  1380.     "\tstw\t10,32(2)\n"
  1381.     "\taddi\t4,1,8\n"
  1382.     "\tstw\t4,36(2)\n"
  1383.     "\tli\t3,-816\n"
  1384.     "\tblrl";
  1385. #define SetWindowPointer(win, ...) __SetWindowPointer(IntuitionBase, 0, 0, 0, 0, 0, 0, (win), __VA_ARGS__)
  1386. #endif
  1387.  
  1388. BOOL __TimedDisplayAlert(struct IntuitionBase *, ULONG alertNumber, CONST_STRPTR string, ULONG height, ULONG time) =
  1389.     "\tlwz\t11,100(2)\n"
  1390.     "\tstw\t3,56(2)\n"
  1391.     "\tmtlr\t11\n"
  1392.     "\tstw\t4,0(2)\n"
  1393.     "\tstw\t5,32(2)\n"
  1394.     "\tstw\t6,4(2)\n"
  1395.     "\tstw\t7,36(2)\n"
  1396.     "\tli\t3,-822\n"
  1397.     "\tblrl";
  1398. #define TimedDisplayAlert(alertNumber, string, height, time) __TimedDisplayAlert(IntuitionBase, (alertNumber), (string), (height), (time))
  1399.  
  1400. VOID __HelpControl(struct IntuitionBase *, struct Window * win, ULONG flags) =
  1401.     "\tlwz\t11,100(2)\n"
  1402.     "\tstw\t3,56(2)\n"
  1403.     "\tmtlr\t11\n"
  1404.     "\tstw\t4,32(2)\n"
  1405.     "\tstw\t5,0(2)\n"
  1406.     "\tli\t3,-828\n"
  1407.     "\tblrl";
  1408. #define HelpControl(win, flags) __HelpControl(IntuitionBase, (win), (flags))
  1409.  
  1410. #endif /*  _VBCCINLINE_INTUITION_H  */
  1411.